﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FA5 RID: 4005
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueModifierAddNotify : IMessage<RogueModifierAddNotify>, IMessage, IEquatable<RogueModifierAddNotify>, IDeepCloneable<RogueModifierAddNotify>, IBufferMessage
	{
		// Token: 0x170032C5 RID: 12997
		// (get) Token: 0x0600B373 RID: 45939 RVA: 0x001E4B79 File Offset: 0x001E2D79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueModifierAddNotify> Parser
		{
			get
			{
				return RogueModifierAddNotify._parser;
			}
		}

		// Token: 0x170032C6 RID: 12998
		// (get) Token: 0x0600B374 RID: 45940 RVA: 0x001E4B80 File Offset: 0x001E2D80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueModifierAddNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170032C7 RID: 12999
		// (get) Token: 0x0600B375 RID: 45941 RVA: 0x001E4B92 File Offset: 0x001E2D92
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueModifierAddNotify.Descriptor;
			}
		}

		// Token: 0x0600B376 RID: 45942 RVA: 0x001E4B99 File Offset: 0x001E2D99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModifierAddNotify()
		{
		}

		// Token: 0x0600B377 RID: 45943 RVA: 0x001E4BA1 File Offset: 0x001E2DA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModifierAddNotify(RogueModifierAddNotify other) : this()
		{
			this.modifier_ = ((other.modifier_ != null) ? other.modifier_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B378 RID: 45944 RVA: 0x001E4BD6 File Offset: 0x001E2DD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModifierAddNotify Clone()
		{
			return new RogueModifierAddNotify(this);
		}

		// Token: 0x170032C8 RID: 13000
		// (get) Token: 0x0600B379 RID: 45945 RVA: 0x001E4BDE File Offset: 0x001E2DDE
		// (set) Token: 0x0600B37A RID: 45946 RVA: 0x001E4BE6 File Offset: 0x001E2DE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModifier Modifier
		{
			get
			{
				return this.modifier_;
			}
			set
			{
				this.modifier_ = value;
			}
		}

		// Token: 0x0600B37B RID: 45947 RVA: 0x001E4BEF File Offset: 0x001E2DEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueModifierAddNotify);
		}

		// Token: 0x0600B37C RID: 45948 RVA: 0x001E4BFD File Offset: 0x001E2DFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueModifierAddNotify other)
		{
			return other != null && (other == this || (object.Equals(this.Modifier, other.Modifier) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B37D RID: 45949 RVA: 0x001E4C30 File Offset: 0x001E2E30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.modifier_ != null)
			{
				num ^= this.Modifier.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B37E RID: 45950 RVA: 0x001E4C6C File Offset: 0x001E2E6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B37F RID: 45951 RVA: 0x001E4C74 File Offset: 0x001E2E74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B380 RID: 45952 RVA: 0x001E4C7D File Offset: 0x001E2E7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.modifier_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.Modifier);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B381 RID: 45953 RVA: 0x001E4CB0 File Offset: 0x001E2EB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.modifier_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Modifier);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B382 RID: 45954 RVA: 0x001E4CF0 File Offset: 0x001E2EF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueModifierAddNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.modifier_ != null)
			{
				if (this.modifier_ == null)
				{
					this.Modifier = new RogueModifier();
				}
				this.Modifier.MergeFrom(other.Modifier);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B383 RID: 45955 RVA: 0x001E4D44 File Offset: 0x001E2F44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B384 RID: 45956 RVA: 0x001E4D50 File Offset: 0x001E2F50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.modifier_ == null)
					{
						this.Modifier = new RogueModifier();
					}
					input.ReadMessage(this.Modifier);
				}
			}
		}

		// Token: 0x0400488F RID: 18575
		private static readonly MessageParser<RogueModifierAddNotify> _parser = new MessageParser<RogueModifierAddNotify>(() => new RogueModifierAddNotify());

		// Token: 0x04004890 RID: 18576
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004891 RID: 18577
		public const int ModifierFieldNumber = 3;

		// Token: 0x04004892 RID: 18578
		private RogueModifier modifier_;
	}
}
